﻿@using ThuySan.Areas.Backend.Models
@model ThuySan.Models.WebUserModel
@{
    Layout = "~/Areas/Backend/Views/Shared/_Layout.cshtml";
    Header header = new Header
    {
        Common = "ViewUserControl_User_Add",
        CurentCommon = "Setting",
        PageHeader = "Chỉnh sửa thông tin tài khoản",
        Menulv1 = "02",
        Menulv2 = "0203"
    };
    ViewData[Header.Key] = header;
    ViewBag.Title = "Edit User - Admin Control Panel";
    Html.EnableClientValidation();
}
<div class="content-box">
    <div class="content-box-header">
        <h3>
            Chỉnh sửa thông tin tài khoản</h3>
    </div>
    <div class="content-box-content">
        @using (Html.BeginForm("Edit", "User", FormMethod.Post, new
        {
            enctype = "multipart/form-data"
        }))
        {
            @Html.ValidationMessage("error")
            @Html.HiddenFor(c => c.WebUserId)
            <div class="input-item">
                <label>
                    User name</label>
                @Html.TextBoxFor(c => c.UserName, new
           {
               @class = "text-input medium-input"
           })
                @Html.ValidationMessageFor(c => c.UserName)
            </div>
            <div class="input-item">
                <label>
                    Password</label>
                @Html.PasswordFor(c => c.Password, new
           {
               @class = "text-input medium-input"
           })
                @Html.ValidationMessageFor(c => c.Password)
            </div>
            <div class="input-item">
                <label>
                    Email</label>
                @Html.TextBoxFor(c => c.Email, new
           {
               @class = "text-input medium-input"
           })
                @Html.ValidationMessageFor(c => c.Email)
            </div>
            <input type="submit" value="Cập nhật" class="button" />
            <input type="button" onclick=" javascript:window.location.href = '@Url.Action("Index")'; " value="Reset" class="button" />
        }
    </div>
</div>
